home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
clipper
/
mrddem.zip
/
TITLE.PRG
< prev
next >
Wrap
Text File
|
1994-06-29
|
2KB
|
45 lines
#include "class(y).ch"
/*┌─────────┬────────────────────────────────────────────────────────────────┐
│ Class│Title() │
│ Purpose│Title line class │
│Date-Time│08-13-93 09:46:41pm │
│Copyright│L&W Computer Services Ltd. │
│ Author│Ian Day │
└─────────┴────────────────────────────────────────────────────────────────┘*/
CREATE CLASS Title
EXPORT:
VAR cSaveLine TYPE CHARACTER
METHOD Init, Close
END CLASS
/*┌─────────┬────────────────────────────────────────────────────────────────┐
│ Method│ │
│ Purpose│ │
│Date-Time│08-13-93 09:47:44pm │
│Copyright│L&W Computer Services Ltd. │
│ Author│Ian Day │
└─────────┴────────────────────────────────────────────────────────────────┘*/
METHOD Init(cText)
::cSaveLine := SaveScreen(2, 1, 2, MaxCol() - 1)
@ 2, 1 SAY PadC(cText, MaxCol() - 1) COLOR "B/BG"
RETURN (self)
/*┌─────────┬────────────────────────────────────────────────────────────────┐
│ Method│Close() --> NIL │
│ Purpose│Restore the line │
│Date-Time│08-13-93 09:48:51pm │
│Copyright│L&W Computer Services Ltd. │
│ Author│Ian Day │
└─────────┴────────────────────────────────────────────────────────────────┘*/
METHOD Close
RestScreen(2, 1, 2, MaxCol() - 1, ::cSaveLine)
RETURN (self)